
/*
 * @description: 装修模版组件配置中心
 * @Author: along
 * @Date: 2020-09-07
 * @Last Modified by: along
 * @Last Modified time: 2021-05-11
 * @desc: https://zsdx.yuque.com/ck6ubz/zflzgc/shtyhx
 */

export default [{
    title: '图文控件',
    type: '1',
    list: [{
        type: 1,
        iconfont: '',
        images: 'https://cdn.zsdx.cn/student-app/images/control_icon1.png',
        title: '单列图片',
        config: {
            type: 1,
            style: {},
            data: {
                image_url: '',
                action: {
                    type: 1,
                    app_action: {}
                }
            }
        }
    },{
        type: 3,
        iconfont: '',
        images: 'https://cdn.zsdx.cn/student-app/images/control_icon2.png',
        title: '轮播图',
        config: {
            type: 3,
            style: {},
            status: false,//标记数据状态,服务端会过滤
            data: {
                images: [{
                    image_url: '',
                    action: {
                        type: 1,
                        app_action: {}
                    }
                }]
            }
        }
    },{
        type: 2,
        iconfont: '',
        images: 'https://cdn.zsdx.cn/student-app/images/control_icon3.png',
        title: '多图拼凑',
        config: {
            type: 2,
            style: {},
            status: false,//标记数据状态,服务端会过滤
            data: {
                images: [{
                    image_url: '',
                    action: {
                        type: 1,
                        app_action: {}
                    }
                }]
            }
        }
    },{
        type: 101,
        iconfont: '',
        images: 'https://cdn.zsdx.cn/student-app/images/control_icon4.png',
        title: '商品分组',
        config: {
            type: 101,
            list: [],//存储数据，服务端会过滤
            style: {},
            flag: 0,//标记选中状态,服务端会过滤
            data: {
                goods_cate_no: '',
                sort: 1
            }
        }
    },{
        type: 103,
        iconfont: '',
        images: 'https://cdn.zsdx.cn/student-app/images/control_icon5.png',
        title: '自定义商品',
        config: {
            type: 103,
            style: {},
            data: {
                sort: 1,//排序类型
                goods_nos: []//自定义商品列表
            }
        }
    },{
        type: 105,
        iconfont: '',
        images: 'https://cdn.zsdx.cn/student-app/images/control_icon6.png',
        title: '社群专享',
        config: {
            type: 105,
            style: {},
            data: {
                sort: 1,//排序类型
                gg_nos: []//自定义商品列表
            }
        }
    },{
        type: 11,
        iconfont: '',
        images: 'https://cdn.zsdx.cn/student-app/images/control_share.png',
        title: '分享按钮',
        config: {
            type: 11,
            style: {
                Top: 0,//下边距
                Left: 0,//左边距
                mH: 20,
                mV: 20,
                buttonFixed: 1,//1:非固定 2:悬浮固定
                borderRadius: '30rpx 30rpx 30rpx 30rpx',//商品圆角rpx
                share_pwd: 1//分享口令
            },
            data: {
                button_image: '',
                title: '',
                desc: '',
                image: '',
                url: ''
            }
        }
    }]
},{
    title: '营销控件',
    type: '2',
    list: [
        // {
        //     type: 102,
        //     iconfont: 'el-icon-hand-youhuiquan',
        //     title: '优惠券',
        //     config: {
        //         type: 102,
        //         style: {},
        //         data: {
        //             coupon_nos: [],//优惠券编号数组
        //             hide_invalid: '1',//是否隐藏失效的优惠券
        //         }
        //     }
        // },
        // {
        //     type: 104,
        //     iconfont: 'el-icon-hand-hongbao1',
        //     title: '掌大红包',
        //     config: {
        //         type: 104,
        //         style: {},
        //         data: {
        //             packet_nos: [],//红包编号数组
        //             hide_invalid: '1',//是否隐藏失效的红包
        //         }
        //     }
        // },
        {
            type: 106,
            iconfont: '',
            images: 'https://cdn.zsdx.cn/student-app/images/control_icon7.png',
            title: '优惠券',
            config: {
                type: 106,
                style: {},
                data: {
                    coupon_list: [],//优惠券编号数组
                    hide_invalid: '1'
                }
            }
        },
        {
            type: 107,
            iconfont: '',
            images: 'https://cdn.zsdx.cn/student-app/images/control_icon8.png',
            title: '红包',
            config: {
                type: 107,
                style: {},
                data: {
                    packet_list: [],//红包编号数组
                    hide_invalid: '1'
                }
            }
        },
        {
            type: 6,
            iconfont: '',
            images: 'https://cdn.zsdx.cn/student-app/images/control_icon9.png',
            title: '倒计时',
            config: {
                type: 6,
                style: {},
                data: {
                    start_time: '',//开始时间
                    end_time: '',//结束时间
                    type: 1 //倒计时类型,0:按小时,1:按天
                }
            }
        }
    ]
},{
    title: '其它控件',
    type: '3',
    list: [{
        type: 5,
        iconfont: '',
        images: 'https://cdn.zsdx.cn/student-app/images/control_icon10.png',
        title: '辅助线条',
        config: {
            type: 5,
            style: {},
            data: {}
        }
    },{
        type: 4,
        iconfont: '',
        images: 'https://cdn.zsdx.cn/student-app/images/control_icon11.png',
        title: '辅助空白',
        config: {
            type: 4,
            style: {},
            data: {}
        }
    }]
}];